package com.jade.shoesmallinterface.service.impl;

import com.jade.shoesmallinterface.entity.UserAddress;
import com.jade.shoesmallinterface.mapper.UserAddressMapper;
import com.jade.shoesmallinterface.service.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserAddressServiceImpl implements UserAddressService {
    @Autowired
    private UserAddressMapper userAddressMapper;

    @Override
    public List<UserAddress> selectAddressesByUserId(Integer userId) {
        return userAddressMapper.selectAddressesByUserId(userId);
    }

    @Override
    public int insertUserAddress(UserAddress userAddress) {
        return userAddressMapper.insertUserAddress(userAddress);
    }
}